package com.example.exam.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-03-28
 */
@TableName("exam.testpaper")
public class Testpaper implements Serializable {

    private Integer id;

    /**
     * 0.考试  1.练习卷
     */
    @TableField("`type`")
    private String type;

    private String paperName;

    private String paperBody;

    /**
     * 开始时间，练习卷无
     */
    private LocalDateTime startTime;

    /**
     * 结束时间，练习卷无
     */
    private LocalDateTime overTime;

    /**
     * 创建时间
     */
    private LocalDateTime creatTime;

    /**
     * 创建人
     */
    private Integer creatId;

    /**
     * 试卷状态  0.考试卷未启用 1.启用 2.,考试结束 9.逻辑删除
     */
    @TableField("`status`")
    private String status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPaperName() {
        return paperName;
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName;
    }

    public String getPaperBody() {
        return paperBody;
    }

    public void setPaperBody(String paperBody) {
        this.paperBody = paperBody;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getOverTime() {
        return overTime;
    }

    public void setOverTime(LocalDateTime overTime) {
        this.overTime = overTime;
    }

    public LocalDateTime getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(LocalDateTime creatTime) {
        this.creatTime = creatTime;
    }

    public Integer getCreatId() {
        return creatId;
    }

    public void setCreatId(Integer creatId) {
        this.creatId = creatId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Testpaper{" +
                "id=" + id +
                ", type=" + type +
                ", paperName=" + paperName +
                ", paperBody=" + paperBody +
                ", startTime=" + startTime +
                ", overTime=" + overTime +
                ", creatTime=" + creatTime +
                ", creatId=" + creatId +
                ", status=" + status +
                "}";
    }
}
